/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cashmate.struts;


import com.cashmate.hibernate.dao.BusinessDAO;
import com.cashmate.hibernate.dao.CreditinvestigationDAO;
import com.cashmate.hibernate.dao.EmployeeDAO;
import com.cashmate.hibernate.dao.LoanapplicationDAO;
import com.cashmate.hibernate.dao.LoanverificationDAO;
import com.cashmate.hibernate.dao.ReputationDAO;
import com.cashmate.hibernate.dao.SourceofincomeDAO;
import com.cashmate.hibernate.dao.TypeofcollateralDAO;
import com.cashmate.hibernate.pojo.Borrowerinfo;
import com.cashmate.hibernate.pojo.Borrowers;
import com.cashmate.hibernate.pojo.Businesses;
import com.cashmate.hibernate.pojo.CollateralCreditinv;
import com.cashmate.hibernate.pojo.Creditinvestigations;
import com.cashmate.hibernate.pojo.Documents;
import com.cashmate.hibernate.pojo.Documentspassed;
import com.cashmate.hibernate.pojo.Employees;
import com.cashmate.hibernate.pojo.Informants;
import com.cashmate.hibernate.pojo.Loanapplications;
import com.cashmate.hibernate.pojo.Loanverification;
import com.cashmate.hibernate.pojo.Notesreceivable;
import com.cashmate.hibernate.pojo.Othersourceofincome;
import com.cashmate.hibernate.pojo.Personalandrealproperties;
import com.cashmate.hibernate.pojo.Reputation;
import com.cashmate.hibernate.pojo.ReputationCreditinv;
import com.cashmate.hibernate.pojo.SourceCreditinv;
import com.cashmate.hibernate.pojo.Sourceofincome;
import com.cashmate.hibernate.pojo.Typeofcollateral;
import com.cashmate.hibernate.pojo.Vehicle;
import com.opensymphony.xwork2.ActionSupport;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import java.io.File;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.commons.io.FileUtils;

/**
 *
 * @author Lee
 */
public class UpdateCI extends ActionSupport implements ServletRequestAware {

    private Creditinvestigations c;
    private CreditinvestigationDAO cd = (CreditinvestigationDAO) ServletActionContext.getServletContext().getAttribute("creditinvestigationDAO");
    private LoanapplicationDAO ld = (LoanapplicationDAO) ServletActionContext.getServletContext().getAttribute("loanapplicationDAO");
    private EmployeeDAO emd = (EmployeeDAO) ServletActionContext.getServletContext().getAttribute("employeeDAO");
    private ReputationDAO rd = (ReputationDAO) ServletActionContext.getServletContext().getAttribute("reputationDAO");
    private TypeofcollateralDAO tcd = (TypeofcollateralDAO) ServletActionContext.getServletContext().getAttribute("typeofcollateralDAO");
    private SourceofincomeDAO sid = (SourceofincomeDAO) ServletActionContext.getServletContext().getAttribute("sourceofincomeDAO");
    private BusinessDAO bd = (BusinessDAO) ServletActionContext.getServletContext().getAttribute("businessDAO");
    private LoanverificationDAO lvd = (LoanverificationDAO) ServletActionContext.getServletContext().getAttribute("loanverificationDAO");
    private CreditinvestigationDAO crdao = (CreditinvestigationDAO) ServletActionContext.getServletContext().getAttribute("creditinvestigationDAO");
    private String ciid;
    private String nickname;
    private String actionstatus;
    private String addcreditstatus;
    private String addressfloorarea;
    private String addresslotarea;
    private String addressstability;
    private String addressmodel;
    private String addressmake;
    private String addressland;
    private String addressmonthlyrental;
    private String addresslandlordname;
    private String addresslandlordaddress;
    private String addresslandlordphoneno;
    private String spousedegree;
    private String spouseschool;
    private String previousstreetaddress;
    private String previousbarangay;
    private String previouscityormunicipality;
    private String previousprovince;
    private String previouspostalcode;
    private String parentsstreetaddress;
    private String parentsbarangay;
    private String parentscityormunicipality;
    private String parentsprovince;
    private String parentspostalcode;
    private String fatherinlawfirstname;
    private String fatherinlawmiddlename;
    private String fatherinlawlastname;
    private String motherinlawfirstname;
    private String motherinlawmiddlename;
    private String motherinlawlastname;
    private String fatherinlawemployer;
    private String motherinlawemployer;
    private String fatherinlawposition;
    private String motherinlawposition;
    private String parentsinlawstreetaddress;
    private String parentsinlawbarangay;
    private String parentsinlawcityormunicipality;
    private String parentsinlawprovince;
    private String parentsinlawpostalcode;
    private String presentaddressstatus;
    private String presentaddresslengthofstayinyears;
    private String presentaddresslengthofstayinmonths;
    private String stocksworthamount;
    private String stocksworth;
    private String remarks;
    private String creditconsultantrecommendation;
    private String branchmanagerrecommendation;
    private String areamanagerrecommendation;
    private String investigationdate;
    private String spouseyeargraduated;
    private String previouslengthofstayinyears;
    private String previouslengthofstayinmonths;
    private String parentslengthofstayinyear;
    private String parentslengthofstayinmonths;
    private String fatherinlawage;
    private String motherinlawage;
    private String parentsinlawlengthofstayinyears;
    private String parentsinlawlengthofstayinmonths;
    //document
    private String loanverid, employeeid, docdate, docnoci, doctypeci;
    //vehicle
    private String[] vtype, make, model;
    //documents passed
    private String[] documenttype, documentno, copytype;
    //informants
    private String[] ifirstname, imiddlename, ilastname, iaddress, irelationshiptoborrower, ilengthofrelationshipinyears;
    //personal
    private String[] description, nature, location, value;
    //savings
    private String[] bank, stotype, accountno, amount;
    //other
    private String[] type, employer, address, position, income;
    //reputation
    private String[] reputation;
    //collateral
    private String[] collateral;
    //source of income
    private String[] sourceofincome;
    //Borrowerinfo
    private String degree, school, yeargraduated, fatherfirstname, fathermiddlename, fatherlastname, motherfirstname,
            mothermiddlename, motherlastname, fatheremployer, motheremployer, fatherposition, motherposition,
            fatherage, motherage;
    //Requirement
    private String[] requirement;
    private String successurl;
    //Business
    private String[] businessid;
    private String[] businessname;
    private String[] businessfloorarea;
    private String[] businesslandarea;
    private String[] businessstability;
    private String[] businessmodel;
    private String[] businessmake;
    private String[] businessland;
    private String[] dailyaveragesales;
    private String[] businesslandlordname;
    private String[] businessmonthlyrental;
    private String[] businesslandlordaddress;
    private String[] businesslandlordphoneno;
    private String[] businesstype;
    //image
    private File userImage;
    private String userImageContentType;
    private String userImageFileName;
    private HttpServletRequest servletRequest;

    @Action(value = "/update-ci", results = {
        @Result(name = "input", location = "${successurl}"),
        @Result(name = "success", location = "${successurl}")
    })
    @Override
    public String execute() {
        successurl = "../../loanprofile-loanapp.jsp?cat=credit&id=" + ciid;
        Creditinvestigations c = null;
        try{
            c = crdao.get(Integer.parseInt(ciid));
        }catch(Exception ex){
            actionstatus = "Credit investigation does not exist.";
            ex.printStackTrace();
            return ERROR;
        }
            if (nickname != null) {
                c.setNickname(nickname);
            }
            if (addressfloorarea != null) {
                c.setAddressfloorarea(addressfloorarea);
            }
            if (addresslotarea != null) {
                c.setAddresslotarea(addresslotarea);
            }
            if (addressstability != null) {
                c.setAddressstability(addressstability);
            }
            if (addressmodel != null) {
                c.setAddressmodel(addressmodel);
            }
            if (addressmake != null) {
                c.setAddressmake(addressmake);
            }
            if (addressland != null) {
                c.setAddressland(addressland);
            }
            if (addressmonthlyrental != null) {
                c.setAddressmonthlyrental(addressmonthlyrental);
            }
            if (addresslandlordname != null) {
                c.setAddresslandlordname(addresslandlordname);
            }
            if (addresslandlordaddress != null) {
                c.setAddresslandlordaddress(addresslandlordaddress);
            }
            if (addresslandlordphoneno != null) {
                c.setAddresslandlordphoneno(addresslandlordphoneno);
            }
            if (spousedegree != null) {
                c.setSpousedegree(spousedegree);
            }
            if (spouseschool != null) {
                c.setSpouseschool(spouseschool);
            }
            if (spouseyeargraduated != null) {
                c.setSpouseyeargraduated(Integer.parseInt(spouseyeargraduated));
            }
            if (previousstreetaddress != null) {
                c.setPreviousstreetaddress(previousstreetaddress);
            }
            if (previousbarangay != null) {
                c.setPreviousbarangay(previousbarangay);
            }
            if (previouscityormunicipality != null) {
                c.setPreviouscityormunicipality(previouscityormunicipality);
            }
            if (previousprovince != null) {
                c.setPreviousprovince(previousprovince);
            }
            if (previouspostalcode != null) {
                c.setPreviouspostalcode(previouspostalcode);
            }
            if (previouslengthofstayinyears != null) {
                c.setPreviouslengthofstayinyears(Integer.parseInt(previouslengthofstayinyears));
            }
            if (previouslengthofstayinmonths != null) {
                c.setPresentaddresslengthofstayinmonths(Integer.parseInt(previouslengthofstayinmonths));
            }
            if (parentsstreetaddress != null) {
                c.setParentsstreetaddress(parentsstreetaddress);
            }
            if (parentsbarangay != null) {
                c.setParentsbarangay(parentsbarangay);
            }
            if (parentscityormunicipality != null) {
                c.setParentscityormunicipality(parentscityormunicipality);
            }
            if (parentsprovince != null) {
                c.setParentsprovince(parentsprovince);
            }
            if (parentspostalcode != null) {
                c.setParentspostalcode(parentspostalcode);
            }
            if (parentslengthofstayinyear != null) {
                c.setParentsinlawlengthofstayinyears(Integer.parseInt(parentslengthofstayinyear));
            }
            if (parentslengthofstayinmonths != null) {
                c.setParentsinlawlengthofstayinmonths(Integer.parseInt(parentslengthofstayinmonths));
            }
            if (fatherinlawfirstname != null) {
                c.setFatherinlawfirstname(fatherinlawfirstname);
            }
            if (fatherinlawmiddlename != null) {
                c.setFatherinlawmiddlename(fatherinlawmiddlename);
            }
            if (fatherinlawlastname != null) {
                c.setFatherinlawlastname(fatherinlawlastname);
            }
            if (motherinlawfirstname != null) {
                c.setMotherinlawfirstname(motherinlawfirstname);
            }
            if (motherinlawmiddlename != null) {
                c.setMotherinlawmiddlename(motherinlawmiddlename);
            }
            if (motherinlawlastname != null) {
                c.setMotherinlawlastname(motherinlawlastname);
            }
            if (fatherinlawemployer != null) {
                c.setFatherinlawemployer(fatherinlawemployer);
            }
            if (motherinlawemployer != null) {
                c.setMotherinlawemployer(motherinlawemployer);
            }
            if (fatherinlawposition != null) {
                c.setFatherinlawposition(fatherinlawposition);
            }
            if (motherinlawposition != null) {
                c.setMotherinlawposition(motherinlawposition);
            }
            if (fatherinlawage != null) {
                c.setFatherinlawage(Integer.parseInt(fatherinlawage));
            }
            if (motherinlawage != null) {
                c.setMotherinlawage(Integer.parseInt(motherinlawage));
            }
            if (parentsinlawstreetaddress != null) {
                c.setParentsinlawstreetaddress(parentsinlawstreetaddress);
            }
            if (parentsinlawbarangay != null) {
                c.setParentsinlawbarangay(parentsinlawbarangay);
            }
            if (parentsinlawcityormunicipality != null) {
                c.setParentsinlawcityormunicipality(parentsinlawcityormunicipality);
            }
            if (parentsinlawprovince != null) {
                c.setParentsinlawprovince(parentsinlawprovince);
            }
            if (parentsinlawpostalcode != null) {
                c.setParentsinlawpostalcode(parentsinlawpostalcode);
            }
            if (parentsinlawlengthofstayinyears != null) {
                c.setParentsinlawlengthofstayinyears(Integer.parseInt(parentsinlawlengthofstayinyears));
            }
            if (parentsinlawlengthofstayinmonths != null) {
                c.setParentsinlawlengthofstayinmonths(Integer.parseInt(parentsinlawlengthofstayinmonths));
            }
            if (presentaddresslengthofstayinyears != null) {
                c.setPresentaddresslengthofstayinyears(Integer.parseInt(presentaddresslengthofstayinyears));
            }
            if (presentaddresslengthofstayinmonths != null) {
                c.setPresentaddresslengthofstayinyears(Integer.parseInt(presentaddresslengthofstayinmonths));
            }
            if (presentaddressstatus != null) {
                c.setPresentaddressstatus(presentaddressstatus);
            }
            try{
                c.setStat("posted");
                crdao.update(c);
                actionstatus = "Credit investigation posted.";
                return SUCCESS;
            }catch(Exception e){
                e.printStackTrace();
                actionstatus = "Error posting CI.";
                return ERROR;
            }
            
            
        
    }
    
    public void setBusinessfloorarea(String[] businessfloorarea) {
        this.businessfloorarea = businessfloorarea;
    }

    public void setBusinessid(String[] businessid) {
        this.businessid = businessid;
    }

    public void setBusinessland(String[] businessland) {
        this.businessland = businessland;
    }

    public void setBusinesslandarea(String[] businesslandarea) {
        this.businesslandarea = businesslandarea;
    }

    public void setBusinesslandlordaddress(String[] businesslandlordaddress) {
        this.businesslandlordaddress = businesslandlordaddress;
    }

    public void setBusinesslandlordname(String[] businesslandlordname) {
        this.businesslandlordname = businesslandlordname;
    }

    public void setBusinesslandlordphoneno(String[] businesslandlordphoneno) {
        this.businesslandlordphoneno = businesslandlordphoneno;
    }

    public void setBusinessmake(String[] businessmake) {
        this.businessmake = businessmake;
    }

    public void setBusinessmodel(String[] businessmodel) {
        this.businessmodel = businessmodel;
    }

    public void setBusinessmonthlyrental(String[] businessmonthlyrental) {
        this.businessmonthlyrental = businessmonthlyrental;
    }

    public void setBusinessname(String[] businessname) {
        this.businessname = businessname;
    }

    public void setBusinessstability(String[] businessstability) {
        this.businessstability = businessstability;
    }

    public void setBusinesstype(String[] businesstype) {
        this.businesstype = businesstype;
    }

    public void setDailyaveragesales(String[] dailyaveragesales) {
        this.dailyaveragesales = dailyaveragesales;
    }

    public void setSourceofincome(String[] sourceofincome) {
        this.sourceofincome = sourceofincome;
    }

    public String getSuccessurl() {
        return successurl;
    }

    public void setCollateral(String[] collateral) {
        this.collateral = collateral;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setRequirement(String[] requirement) {
        this.requirement = requirement;
    }

    public void setStocksworthamount(String stocksworthamount) {
        this.stocksworthamount = stocksworthamount;
    }

    public String getActionstatus() {
        return actionstatus;
    }

    public void setActionstatus(String actionstatus) {
        this.actionstatus = actionstatus;
    }

    public void setDocdate(String docdate) {
        this.docdate = docdate;
    }

    public void setDocnoci(String docnoci) {
        this.docnoci = docnoci;
    }

    public void setDoctypeci(String doctypeci) {
        this.doctypeci = doctypeci;
    }

    public void setEmployeeid(String employeeid) {
        this.employeeid = employeeid;
    }

    public String getLoanverid() {
        return loanverid;
    }

    public void setLoanverid(String loanverid) {
        this.loanverid = loanverid;
    }

    public String getAddcreditstatus() {
        return addcreditstatus;
    }

    public void setAddcreditstatus(String addcreditstatus) {
        this.addcreditstatus = addcreditstatus;
    }

    public void setAddressfloorarea(String addressfloorarea) {
        this.addressfloorarea = addressfloorarea;
    }

    public void setAddressland(String addressland) {
        this.addressland = addressland;
    }

    public void setAddresslandlordaddress(String addresslandlordaddress) {
        this.addresslandlordaddress = addresslandlordaddress;
    }

    public void setAddresslandlordname(String addresslandlordname) {
        this.addresslandlordname = addresslandlordname;
    }

    public void setAddresslandlordphoneno(String addresslandlordphoneno) {
        this.addresslandlordphoneno = addresslandlordphoneno;
    }

    public void setAddresslotarea(String addresslotarea) {
        this.addresslotarea = addresslotarea;
    }

    public void setAddressmake(String addressmake) {
        this.addressmake = addressmake;
    }

    public void setAddressmodel(String addressmodel) {
        this.addressmodel = addressmodel;
    }

    public void setAddressmonthlyrental(String addressmonthlyrental) {
        this.addressmonthlyrental = addressmonthlyrental;
    }

    public void setAddressstability(String addressstability) {
        this.addressstability = addressstability;
    }

    public void setAreamanagerrecommendation(String areamanagerrecommendation) {
        this.areamanagerrecommendation = areamanagerrecommendation;
    }

    public void setBranchmanagerrecommendation(String branchmanagerrecommendation) {
        this.branchmanagerrecommendation = branchmanagerrecommendation;
    }

    public void setC(Creditinvestigations c) {
        this.c = c;
    }

    public void setCreditconsultantrecommendation(String creditconsultantrecommendation) {
        this.creditconsultantrecommendation = creditconsultantrecommendation;
    }

    public void setFatherinlawage(String fatherinlawage) {
        this.fatherinlawage = fatherinlawage;
    }

    public void setFatherinlawemployer(String fatherinlawemployer) {
        this.fatherinlawemployer = fatherinlawemployer;
    }

    public void setFatherinlawfirstname(String fatherinlawfirstname) {
        this.fatherinlawfirstname = fatherinlawfirstname;
    }

    public void setFatherinlawlastname(String fatherinlawlastname) {
        this.fatherinlawlastname = fatherinlawlastname;
    }

    public void setFatherinlawmiddlename(String fatherinlawmiddlename) {
        this.fatherinlawmiddlename = fatherinlawmiddlename;
    }

    public void setFatherinlawposition(String fatherinlawposition) {
        this.fatherinlawposition = fatherinlawposition;
    }

    public void setInvestigationdate(String investigationdate) {
        this.investigationdate = investigationdate;
    }

    public void setMotherinlawage(String motherinlawage) {
        this.motherinlawage = motherinlawage;
    }

    public void setMotherinlawemployer(String motherinlawemployer) {
        this.motherinlawemployer = motherinlawemployer;
    }

    public void setMotherinlawfirstname(String motherinlawfirstname) {
        this.motherinlawfirstname = motherinlawfirstname;
    }

    public void setMotherinlawlastname(String motherinlawlastname) {
        this.motherinlawlastname = motherinlawlastname;
    }

    public void setMotherinlawmiddlename(String motherinlawmiddlename) {
        this.motherinlawmiddlename = motherinlawmiddlename;
    }

    public void setMotherinlawposition(String motherinlawposition) {
        this.motherinlawposition = motherinlawposition;
    }

    public void setParentsbarangay(String parentsbarangay) {
        this.parentsbarangay = parentsbarangay;
    }

    public void setParentscityormunicipality(String parentscityormunicipality) {
        this.parentscityormunicipality = parentscityormunicipality;
    }

    public void setParentsinlawbarangay(String parentsinlawbarangay) {
        this.parentsinlawbarangay = parentsinlawbarangay;
    }

    public void setParentsinlawcityormunicipality(String parentsinlawcityormunicipality) {
        this.parentsinlawcityormunicipality = parentsinlawcityormunicipality;
    }

    public void setParentsinlawlengthofstayinmonths(String parentsinlawlengthofstayinmonths) {
        this.parentsinlawlengthofstayinmonths = parentsinlawlengthofstayinmonths;
    }

    public void setParentsinlawlengthofstayinyears(String parentsinlawlengthofstayinyears) {
        this.parentsinlawlengthofstayinyears = parentsinlawlengthofstayinyears;
    }

    public void setParentsinlawpostalcode(String parentsinlawpostalcode) {
        this.parentsinlawpostalcode = parentsinlawpostalcode;
    }

    public void setParentsinlawprovince(String parentsinlawprovince) {
        this.parentsinlawprovince = parentsinlawprovince;
    }

    public void setParentsinlawstreetaddress(String parentsinlawstreetaddress) {
        this.parentsinlawstreetaddress = parentsinlawstreetaddress;
    }

    public void setParentslengthofstayinmonths(String parentslengthofstayinmonths) {
        this.parentslengthofstayinmonths = parentslengthofstayinmonths;
    }

    public void setParentslengthofstayinyear(String parentslengthofstayinyear) {
        this.parentslengthofstayinyear = parentslengthofstayinyear;
    }

    public void setParentspostalcode(String parentspostalcode) {
        this.parentspostalcode = parentspostalcode;
    }

    public void setParentsprovince(String parentsprovince) {
        this.parentsprovince = parentsprovince;
    }

    public void setParentsstreetaddress(String parentsstreetaddress) {
        this.parentsstreetaddress = parentsstreetaddress;
    }

    public void setPresentaddressstatus(String presentaddressstatus) {
        this.presentaddressstatus = presentaddressstatus;
    }

    public void setPreviousbarangay(String previousbarangay) {
        this.previousbarangay = previousbarangay;
    }

    public void setPreviouscityormunicipality(String previouscityormunicipality) {
        this.previouscityormunicipality = previouscityormunicipality;
    }

    public void setPreviouslengthofstayinmonths(String previouslengthofstayinmonths) {
        this.previouslengthofstayinmonths = previouslengthofstayinmonths;
    }

    public void setPreviouslengthofstayinyears(String previouslengthofstayinyears) {
        this.previouslengthofstayinyears = previouslengthofstayinyears;
    }

    public void setPreviouspostalcode(String previouspostalcode) {
        this.previouspostalcode = previouspostalcode;
    }

    public void setPreviousprovince(String previousprovince) {
        this.previousprovince = previousprovince;
    }

    public void setPreviousstreetaddress(String previousstreetaddress) {
        this.previousstreetaddress = previousstreetaddress;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public void setSpousedegree(String spousedegree) {
        this.spousedegree = spousedegree;
    }

    public void setSpouseschool(String spouseschool) {
        this.spouseschool = spouseschool;
    }

    public void setSpouseyeargraduated(String spouseyeargraduated) {
        this.spouseyeargraduated = spouseyeargraduated;
    }

    public void setStocksworth(String stocksworth) {
        this.stocksworth = stocksworth;
    }

    public void setReputation(String[] reputation) {
        this.reputation = reputation;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public void setFatherage(String fatherage) {
        this.fatherage = fatherage;
    }

    public void setFatheremployer(String fatheremployer) {
        this.fatheremployer = fatheremployer;
    }

    public void setFatherfirstname(String fatherfirstname) {
        this.fatherfirstname = fatherfirstname;
    }

    public void setFatherlastname(String fatherlastname) {
        this.fatherlastname = fatherlastname;
    }

    public void setFathermiddlename(String fathermiddlename) {
        this.fathermiddlename = fathermiddlename;
    }

    public void setFatherposition(String fatherposition) {
        this.fatherposition = fatherposition;
    }

    public void setMotherage(String motherage) {
        this.motherage = motherage;
    }

    public void setMotheremployer(String motheremployer) {
        this.motheremployer = motheremployer;
    }

    public void setMotherfirstname(String motherfirstname) {
        this.motherfirstname = motherfirstname;
    }

    public void setMotherlastname(String motherlastname) {
        this.motherlastname = motherlastname;
    }

    public void setMothermiddlename(String mothermiddlename) {
        this.mothermiddlename = mothermiddlename;
    }

    public void setMotherposition(String motherposition) {
        this.motherposition = motherposition;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void setYeargraduated(String yeargraduated) {
        this.yeargraduated = yeargraduated;
    }

    public void setAccountno(String[] accountno) {
        this.accountno = accountno;
    }

    public void setAmount(String[] amount) {
        this.amount = amount;
    }

    public void setBank(String[] bank) {
        this.bank = bank;
    }

    public void setDescription(String[] description) {
        this.description = description;
    }

    public void setEmployer(String[] employer) {
        this.employer = employer;
    }

    public void setIaddress(String[] iaddress) {
        this.iaddress = iaddress;
    }

    public void setIfirstname(String[] ifirstname) {
        this.ifirstname = ifirstname;
    }

    public void setIlastname(String[] ilastname) {
        this.ilastname = ilastname;
    }

    public void setIlengthofrelationshipinyears(String[] ilengthofrelationshipinyears) {
        this.ilengthofrelationshipinyears = ilengthofrelationshipinyears;
    }

    public void setImiddlename(String[] imiddlename) {
        this.imiddlename = imiddlename;
    }

    public void setIrelationshiptoborrower(String[] irelationshiptoborrower) {
        this.irelationshiptoborrower = irelationshiptoborrower;
    }

    public void setLocation(String[] location) {
        this.location = location;
    }

    public void setMake(String[] makevehicle) {
        this.make = makevehicle;
    }

    public void setModel(String[] modelvehicle) {
        this.model = modelvehicle;
    }

    public void setNature(String[] nature) {
        this.nature = nature;
    }

    public void setAddress(String[] otheraddress) {
        this.address = otheraddress;
    }

    public void setIncome(String[] otherincome) {
        this.income = otherincome;
    }

    public void setPosition(String[] otherposition) {
        this.position = otherposition;
    }

    public void setType(String[] othersrctype) {
        this.type = othersrctype;
    }

    public void setCopytype(String[] pcopytype) {
        this.copytype = pcopytype;
    }

    public void setDocumentno(String[] pdocumentno) {
        this.documentno = pdocumentno;
    }

    public void setDocumenttype(String[] pdocumenttype) {
        this.documenttype = pdocumenttype;
    }

    public void setVtype(String[] type) {
        this.vtype = type;
    }

    public void setStotype(String[] type) {
        this.stotype = type;
    }

    public void setValue(String[] value) {
        this.value = value;
    }

    public void setPresentaddresslengthofstayinmonths(String presentaddresslengthofstayinmonths) {
        this.presentaddresslengthofstayinmonths = presentaddresslengthofstayinmonths;
    }

    public void setPresentaddresslengthofstayinyears(String presentaddresslengthofstayinyears) {
        this.presentaddresslengthofstayinyears = presentaddresslengthofstayinyears;
    }

    public File getUserImage() {
        return userImage;
    }

    public void setUserImage(File userImage) {
        this.userImage = userImage;
    }

    public String getUserImageContentType() {
        return userImageContentType;
    }

    public void setCiid(String ciid) {
        this.ciid = ciid;
    }
    
    public void setUserImageContentType(String userImageContentType) {
        this.userImageContentType = userImageContentType;
    }

    public String getUserImageFileName() {
        return userImageFileName;
    }

    public void setUserImageFileName(String userImageFileName) {
        this.userImageFileName = userImageFileName;
    }

    @Override
    public void setServletRequest(HttpServletRequest servletRequest) {
        this.servletRequest = servletRequest;
    }
}
